package com.weijianhuawen.wjblog.admin.mode.vo.role;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @version: java version 8
 * @Author: weijianhuawen
 * @description:
 * @date: 2025-02-05 21:21
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "修改用户角色信息响应实体")
public class UpdateUserRoleReqVo {
    // 用户名
    @NotBlank(message = "所需修改角色的用户名不能为空！")
    private String username;
    // 用户id
    @NotNull(message = "所需修改角色的id不能为空！")
    private Long userId;

    // 当前用户角色
    @NotNull(message = "所修改的目标角色对象不能为空！")
    private Integer roleCode;
    @NotNull(message = "用户新角色对象不能为空！")
    private Integer newRoleCode;
}
